class Singer < ApplicationRecord
  validates :name, presence:true, length:{in: 1..100}
  validates :sex, presence:true
  validates :height, numericality: {only_integer: true, greater_than: 60, less_than: 260}
  has_and_belongs_to_many :musics
end
